package com.coffee.common;

/**
 * 常量类
 *
 * @author Kevin
 */
public class Constants {

    /**
     * header token
     */
    public static final String HEADER_TOKEN = "Authorization";

    /**
     * sa token, token session, user key
     */
    public static final String LOGIN_USER_KEY = "user";

    /**
     * redis缓存，项目统一前缀
     */
    public static final String REDIS_PREFIX = "coffee:";
    /**
     * redis缓存，系统字典缓存模板
     */
    public static final String SYS_DICT_TPL = REDIS_PREFIX + "sys_dict:%s";
    /**
     * redis缓存，系统参数缓存模板
     */
    public static final String SYS_CONFIG_TPL = REDIS_PREFIX + "sys_config:%s";

    /**
     * 所有权限常量
     */
    public static final String ALL_PERMISSION = "*:*:*";

    /**
     * 超级管理员角色编码
     */
    public static final String SUPER_ADMIN = "super_admin";

}
